#!/usr/bin/env python
# -*- encoding: utf-8 -*-
# Project: spd-sxmcc
"""
@author: lyndon
@time Created on 2018/11/8 15:42
@desc
"""
from hiveopr import HiveOpr

hiveopr = HiveOpr('192.168.20.201', 10000)
# havetable = False
# try:
#     hiveopr.execsql('desc ptemp3.tb_teradata_parquet', True)
#     havetable = True
# except Exception as e:
#     havetable = False
# print(havetable)

havetable = hiveopr.havetable('ptemp3', 'tb_teradata_parquet')
print("ddd:" + str(havetable))

